package o;

import android.os.Bundle;
import androidx.annotation.NonNull;
import com.huawei.appgallery.downloadengine.api.SessionDownloadTask;
import java.util.ArrayList;

public class boy implements bqd, bkm {
    private int mInterruptReason;
    private ArrayList<String> mParamFeatures;
    private ArrayList<String> mParamLanguages;
    private int mProgress;
    private long mReceivedSize;
    private int mSessionId;
    private int mStage;
    private int mStatus;
    private long mTotalSize;

    @NonNull
    public Bundle ˎ() {
        Bundle bundle = new Bundle();
        bundle.putInt("int.sessionId", this.mSessionId);
        bundle.putInt("int.stage", this.mStage);
        bundle.putLong("long.fileSize", this.mTotalSize);
        bundle.putLong("long.receivedSize", this.mReceivedSize);
        bundle.putInt("int.progress", this.mProgress);
        bundle.putInt("int.status", this.mStatus);
        bundle.putInt("int.interruptReason", this.mInterruptReason);
        bundle.putStringArrayList("ArrayList<String>.features", this.mParamFeatures);
        bundle.putStringArrayList("ArrayList<String>.languages", this.mParamLanguages);
        return bundle;
    }

    @NonNull
    public static boy ॱ(@NonNull bol o_bol, @NonNull SessionDownloadTask sessionDownloadTask) {
        boy o_boy = new boy();
        o_boy.mSessionId = o_bol.ˏ();
        o_boy.mStage = 1;
        o_boy.mTotalSize = sessionDownloadTask.ˊˋ();
        o_boy.mReceivedSize = sessionDownloadTask.ˋˊ();
        o_boy.mProgress = sessionDownloadTask.ʼॱ();
        o_boy.mStatus = sessionDownloadTask.ˈ();
        o_boy.mInterruptReason = sessionDownloadTask.ᐝॱ();
        o_boy.mParamFeatures = o_bol.ॱˋ();
        o_boy.mParamLanguages = o_bol.ʻॱ();
        return o_boy;
    }
}
